Skip to main content

Adding Rulesets


Suricata​

Suricata Rule Syntax

Official Suricata rule syntax can be found at https://docs.suricata.io/en/suricata-6.0.0/rules/intro.html

  1. Browse to the TFPlenum Controller UI page

  2. On the left navigation bar, click the Rule Set link

  3. Click the Add RuleSet button in the top-right corner and fill the following information, then click Submit:

    FieldValue
    RuleSet NameEnter an appropriate ruleset name
    ClassificationSelect the appropriate rule classification
    Rule TypeSuricata
    SensorsSelect all the sensors you want the ruleset applied to
    Is Enabled?πŸ—Ή CHECKED
  4. Expand the newly added rule entry and click +Add Rule

  5. Enter a rule name where it says Add rule name here. *

  6. Paste in the Suricata rule content that you want to add


Zeek Intel​

Zeek Intel Syntax
  • Zeek will generate an Intel log/alert for any given indicator that is found in analyzed network traffic – it can intelligently determine where certain indicator types are expected to be found within different protocol communications.
  • The following headers must be the first line of the intel file (meta.* fields are optional but found default in OSINT sources). Each column also must be tab-separated, NOT space separated.
#fields   indicator   indicator_type   meta.source   meta.do_notice   meta.desc
ColumnDescription
#fieldsThis is not a column and should be ignored – Zeek uses this internally to identify the column order
indicatorThe indicator for Zeek to alert on
indicator_typeThe type of indicator
meta.sourceWhat intelligence source provided the indicator
meta.do_noticeToggles (T or F) whether the event is sent to the Zeek Notice Framework – this has no effect on intel alerting
meta.descA description of the indicator
  • The Zeek intel framework supports the following intel indicator types (populated in the indicator_type column):
Indicator TypeDescription
Intel::ADDRSingle IP Addresses
Intel::SUBNETIP Subnets
Intel::DOMAINPartial, or fully qualified domain names
Intel::EMAILEmail addresses
Intel::SOFTWARESoftware names
Intel::USER_NAMEUsername
Intel::FILE_NAMEFilenames
Intel::URLURLs
Intel::FILE_HASHFile hashes (MD5/SHA1/SHA256)
Intel::PUBKEY_HASHPublic key hashes (MD5)
Intel::CERT_HASHCertificate hashes (SHA1)
Intel::JA3JA3 Hashes
  • Example Intel file:
#fields   indicator   indicator_type   meta.source   meta.do_notice   meta.desc
1.1.1.1 Intel::ADDR AlientVault Y This is a bad IP address
/bad.exe Intel::URL Unit42 Y Bad file download
admin Intel::USER_NAME CISA Y Might flag on HTTP admin logins
  1. Browse to the TFPlenum Controller UI page

  2. On the left navigation bar, click the Rule Set link

  3. Click the Add RuleSet button in the top-right corner and fill the following information, then click Submit:

    FieldValue
    RuleSet NameEnter an appropriate ruleset name
    ClassificationSelect the appropriate rule classification
    Rule TypeZeek Intel
    SensorsSelect all the sensors you want the ruleset applied to
    Is Enabled?πŸ—Ή CHECKED
  4. Expand the newly added rule entry and click +Add Rule

  5. Enter a rule name where it says Add rule name here. *

  6. Paste in the Zeek intel content that you want to add


Zeek Signatures​

  1. Browse to the TFPlenum Controller UI page

  2. On the left navigation bar, click the Rule Set link

  3. Click the Add RuleSet button in the top-right corner and fill the following information, then click Submit:

    FieldValue
    RuleSet NameEnter an appropriate ruleset name
    ClassificationSelect the appropriate rule classification
    Rule TypeZeek Signatures
    SensorsSelect all the sensors you want the ruleset applied to
    Is Enabled?πŸ—Ή CHECKED
  4. Expand the newly added rule entry and click +Add Rule

  5. Enter a rule name where it says Add rule name here. *

  6. Paste in the Zeek signature content that you want to add


Zeek Scripts​

  1. Browse to the TFPlenum Controller UI page

  2. On the left navigation bar, click the Rule Set link

  3. Click the Add RuleSet button in the top-right corner and fill the following information, then click Submit:

    FieldValue
    RuleSet NameEnter an appropriate ruleset name
    ClassificationSelect the appropriate rule classification
    Rule TypeZeek Scripts
    SensorsSelect all the sensors you want the ruleset applied to
    Is Enabled?πŸ—Ή CHECKED
  4. Expand the newly added rule entry and click +Add Rule

  5. Enter a rule name where it says Add rule name here. *

  6. Paste in the Zeek script content that you want to add